import service from '@/utils/request'

// @Tags Userdetails
// @Summary 创建userdetails表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Userdetails true "创建userdetails表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /userdetails/createUserdetails [post]
export const createUserdetails = (data) => {
  return service({
    url: '/userdetails/createUserdetails',
    method: 'post',
    data
  })
}

// @Tags Userdetails
// @Summary 删除userdetails表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Userdetails true "删除userdetails表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userdetails/deleteUserdetails [delete]
export const deleteUserdetails = (params) => {
  return service({
    url: '/userdetails/deleteUserdetails',
    method: 'delete',
    params
  })
}

// @Tags Userdetails
// @Summary 批量删除userdetails表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除userdetails表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userdetails/deleteUserdetails [delete]
export const deleteUserdetailsByIds = (params) => {
  return service({
    url: '/userdetails/deleteUserdetailsByIds',
    method: 'delete',
    params
  })
}

// @Tags Userdetails
// @Summary 更新userdetails表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Userdetails true "更新userdetails表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userdetails/updateUserdetails [put]
export const updateUserdetails = (data) => {
  return service({
    url: '/userdetails/updateUserdetails',
    method: 'put',
    data
  })
}

// @Tags Userdetails
// @Summary 用id查询userdetails表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Userdetails true "用id查询userdetails表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userdetails/findUserdetails [get]
export const findUserdetails = (params) => {
  return service({
    url: '/userdetails/findUserdetails',
    method: 'get',
    params
  })
}

// @Tags Userdetails
// @Summary 分页获取userdetails表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取userdetails表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userdetails/getUserdetailsList [get]
export const getUserdetailsList = (params) => {
  return service({
    url: '/userdetails/getUserdetailsList',
    method: 'get',
    params
  })
}
